package cn.vc.auth.util;

import cn.dev33.satoken.exception.NotLoginException;
import cn.dev33.satoken.stp.StpUtil;
import cn.vc.auth.entity.po.VUser;

/**
 * @author mo
 * @日期: 2025-01-19 20:59
**/
public class SecurityUtil {
    // {KEY}{ID}
    public final static String AUTH_USER_KEY = "auth_user:";

    public static VUser getUser() throws NotLoginException {
        VUser vUser = new VUser();
        vUser.setId(StpUtil.getLoginIdAsLong());
        return vUser;
    }
}
